// @ts-ignore

 
import { api } from '@/utils/api';

/** 新增药剂现单价 POST /proDataAgentPrice/add */
export async function proDataAgentPriceAdd(
  body: BIZAPI.ProDataAgentPriceCreateReq,
  options?: ArgumentsType<typeof api>[1]
): Promise<BIZAPI.IResultVoid>;

export async function proDataAgentPriceAdd(
  body: BIZAPI.ProDataAgentPriceCreateReq,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: true }
): Promise<TupleResponse<BIZAPI.IResultVoid>>;

export async function proDataAgentPriceAdd(
  body: BIZAPI.ProDataAgentPriceCreateReq,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: false }
): Promise<BIZAPI.IResultVoid>;

export async function proDataAgentPriceAdd(
  body: BIZAPI.ProDataAgentPriceCreateReq,
  options?: ArgumentsType<typeof api>[1]
) {
  if (
    (
      options as ArgumentsType<typeof api>[1] & {
        tupleResponse: boolean;
      }
    )?.tupleResponse === true
  ) {
    return api<BIZAPI.IResultVoid>(`/app/proDataAgentPrice/add`, {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json'
      },
      data: body,
      ...(options || {}),
      tupleResponse: true
    });
  }

  return api<BIZAPI.IResultVoid>(`/app/proDataAgentPrice/add`, {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json'
    },
    data: body,
    ...(options || {})
  });
}

/** 删除药剂现单价 POST /proDataAgentPrice/delete */
export async function proDataAgentPriceDelete(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1]
): Promise<BIZAPI.IResultVoid>;

export async function proDataAgentPriceDelete(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: true }
): Promise<TupleResponse<BIZAPI.IResultVoid>>;

export async function proDataAgentPriceDelete(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: false }
): Promise<BIZAPI.IResultVoid>;

export async function proDataAgentPriceDelete(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1]
) {
  if (
    (
      options as ArgumentsType<typeof api>[1] & {
        tupleResponse: boolean;
      }
    )?.tupleResponse === true
  ) {
    return api<BIZAPI.IResultVoid>(`/app/proDataAgentPrice/delete`, {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json'
      },
      data: body,
      ...(options || {}),
      tupleResponse: true
    });
  }

  return api<BIZAPI.IResultVoid>(`/app/proDataAgentPrice/delete`, {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json'
    },
    data: body,
    ...(options || {})
  });
}

/** 下载模板 POST /proDataAgentPrice/download/template */
export async function proDataAgentPriceDownloadTemplate(
  options?: ArgumentsType<typeof api>[1]
): Promise<any>;

export async function proDataAgentPriceDownloadTemplate(
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: true }
): Promise<TupleResponse<any>>;

export async function proDataAgentPriceDownloadTemplate(
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: false }
): Promise<any>;

export async function proDataAgentPriceDownloadTemplate(options?: ArgumentsType<typeof api>[1]) {
  if (
    (
      options as ArgumentsType<typeof api>[1] & {
        tupleResponse: boolean;
      }
    )?.tupleResponse === true
  ) {
    return api<any>(`/app/proDataAgentPrice/download/template`, {
      method: 'POST',
      ...(options || {}),
      tupleResponse: true
    });
  }

  return api<any>(`/app/proDataAgentPrice/download/template`, {
    method: 'POST',
    ...(options || {})
  });
}

/** 导入数据 POST /proDataAgentPrice/import */
export async function proDataAgentPriceImport(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: BIZAPI.proDataAgentPriceImportParams,
  body: {},
  options?: ArgumentsType<typeof api>[1]
): Promise<BIZAPI.IResultObject>;

export async function proDataAgentPriceImport(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: BIZAPI.proDataAgentPriceImportParams,
  body: {},
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: true }
): Promise<TupleResponse<BIZAPI.IResultObject>>;

export async function proDataAgentPriceImport(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: BIZAPI.proDataAgentPriceImportParams,
  body: {},
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: false }
): Promise<BIZAPI.IResultObject>;

export async function proDataAgentPriceImport(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: BIZAPI.proDataAgentPriceImportParams,
  body: {},
  options?: ArgumentsType<typeof api>[1]
) {
  if (
    (
      options as ArgumentsType<typeof api>[1] & {
        tupleResponse: boolean;
      }
    )?.tupleResponse === true
  ) {
    return api<BIZAPI.IResultObject>(`/app/proDataAgentPrice/import`, {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json'
      },
      params: {
        ...params
      },
      data: body,
      ...(options || {}),
      tupleResponse: true
    });
  }

  return api<BIZAPI.IResultObject>(`/app/proDataAgentPrice/import`, {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json'
    },
    params: {
      ...params
    },
    data: body,
    ...(options || {})
  });
}

/** 获取药剂现单价分页数据 POST /proDataAgentPrice/page */
export async function proDataAgentPricePage(
  body: BIZAPI.ProDataAgentPriceQuery,
  options?: ArgumentsType<typeof api>[1]
): Promise<BIZAPI.IResultIPageProDataAgentPriceEntity>;

export async function proDataAgentPricePage(
  body: BIZAPI.ProDataAgentPriceQuery,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: true }
): Promise<TupleResponse<BIZAPI.IResultIPageProDataAgentPriceEntity>>;

export async function proDataAgentPricePage(
  body: BIZAPI.ProDataAgentPriceQuery,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: false }
): Promise<BIZAPI.IResultIPageProDataAgentPriceEntity>;

export async function proDataAgentPricePage(
  body: BIZAPI.ProDataAgentPriceQuery,
  options?: ArgumentsType<typeof api>[1]
) {
  if (
    (
      options as ArgumentsType<typeof api>[1] & {
        tupleResponse: boolean;
      }
    )?.tupleResponse === true
  ) {
    return api<BIZAPI.IResultIPageProDataAgentPriceEntity>(`/app/proDataAgentPrice/page`, {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json'
      },
      data: body,
      ...(options || {}),
      tupleResponse: true
    });
  }

  return api<BIZAPI.IResultIPageProDataAgentPriceEntity>(`/app/proDataAgentPrice/page`, {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json'
    },
    data: body,
    ...(options || {})
  });
}

/** 更新药剂现单价 POST /proDataAgentPrice/update */
export async function proDataAgentPriceUpdate(
  body: BIZAPI.ProDataAgentPriceUpdateReq,
  options?: ArgumentsType<typeof api>[1]
): Promise<BIZAPI.IResultVoid>;

export async function proDataAgentPriceUpdate(
  body: BIZAPI.ProDataAgentPriceUpdateReq,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: true }
): Promise<TupleResponse<BIZAPI.IResultVoid>>;

export async function proDataAgentPriceUpdate(
  body: BIZAPI.ProDataAgentPriceUpdateReq,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: false }
): Promise<BIZAPI.IResultVoid>;

export async function proDataAgentPriceUpdate(
  body: BIZAPI.ProDataAgentPriceUpdateReq,
  options?: ArgumentsType<typeof api>[1]
) {
  if (
    (
      options as ArgumentsType<typeof api>[1] & {
        tupleResponse: boolean;
      }
    )?.tupleResponse === true
  ) {
    return api<BIZAPI.IResultVoid>(`/app/proDataAgentPrice/update`, {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json'
      },
      data: body,
      ...(options || {}),
      tupleResponse: true
    });
  }

  return api<BIZAPI.IResultVoid>(`/app/proDataAgentPrice/update`, {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json'
    },
    data: body,
    ...(options || {})
  });
}
